//
//  EventListParser.h
//  FootPrint
//
//  Created by alex tao on 3/26/13.
//  Copyright (c) 2013 alex tao. All rights reserved.
//

#import "CommonParser.h"
#import "EventQueryResponse.pb.h"

@protocol EventListDelegate <NSObject>

// 事件概述回调
- (void) didRecieveEventList:(EventQueryResponseMessage*)event beginDate:(long long)bgDate endDate:(long long)edDate withFilter:(NSString*)filter;

@end

///////////////////////////////////////////////////////////////////////////////////////////////////

@interface EventListParser : CommonParser

@property (nonatomic, assign) id<EventListDelegate>          delegate;

// 事件概述查询，更加userId查询
// filter 过滤， 1010 4位，第一位总开关，后面3个分别为：时间，地点，人物
- (void) quaryEventByUser:(long long)uid beginDate:(long long)bgDate endDate:(long long)edDate andFilter:(NSString*)filter;

- (void) createEventByUser:(long long)uid eventMsg:(EventMessage*)msg;

@end
